package cn.com.jinhao.hotline.gateway.controller;

import cn.com.jinhao.hotline.commons.base.constant.SystemConstant;
import cn.com.jinhao.hotline.commons.util.RestResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 熔断控制器
 * @author  ShaneWei
 */
@RestController
public class FallbackController {

    @RequestMapping("/defaultFallback")
    public RestResponse<String> defaultFallback() {
        return new RestResponse<>(SystemConstant.ResponseCode.SERVER_EXCEPTION, null);
    }
}
